 <div class="main">
    <h1>
    login
    </h1>
   <form id="form2">
     <lable>name <input  name="username" id="name" type="text"/></lable><br/>
     <lable>pwd <input name="pwd" id="pwd" type="password"/></lable><br/>
     <button type="submit" id="login">登录</button>

   </form>
   <div id="rr">

   </div>
  </div>
 <script>
   $('#login').click(function (e) {
     e.preventDefault();
     $.get('/users/login', function (oo) {
       let aar=[];
       aar=oo;
       $('#rr').html('aaa');
       console.log(aar[0].pwd)
     },'json')
   })
 </script>



